import request from "@/utils/request";

/**
 * 任务列表
 * @param { taskListParams } data
 * @return { taskListItem[] }
 */
export const taskManagerList = data =>
  request({
    url: "/crm/build/task/taskList",
    method: "post",
    data
  });

/**
 * 任务状态数量
 * @param { taskListParams } data
 * @return { taskStatusCountObj }
 */
export const taskStatusCount = data =>
  request({
    url: "/crm/build/task/taskListNumber",
    method: "post",
    data
  });

/**
 * 删除
 */
export const taskDelete = stageTaskId =>
  request({
    url: `/crm/build/task/deleteTask/${stageTaskId}`,
    method: "delete"
  });
